package com.topvision.service.impl.hes;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.mapper.hes.HesExpertMapper;
import com.topvision.model.hes.HesExpert;
import com.topvision.service.hes.HesExpertService;

@Service("hesExpertService")
public class HesExpertServiceImpl implements HesExpertService {
	@Autowired
	private HesExpertMapper hesExpertMapper;
	
	@Override
	public HesExpert queryObject(Long id){
		return hesExpertMapper.queryObject(id);
	}
	
	@Override
	public List<HesExpert> queryList(Map<String, Object> map){
		return hesExpertMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hesExpertMapper.queryTotal(map);
	}
	
	@Override
	public void save(HesExpert hesExpert){
		hesExpertMapper.save(hesExpert);
	}
	
	@Override
	public void update(HesExpert hesExpert){
		hesExpertMapper.update(hesExpert);
	}
	
	@Override
	public void delete(Long id){
		hesExpertMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		hesExpertMapper.deleteBatch(ids);
	}

	@Override
	public List<HesExpert> queryByParam(Map<String, Object> map) {
		return hesExpertMapper.queryByParam(map);
	}

	@Override
	public HesExpert Login(String username, String pass) {
		return hesExpertMapper.Login(username,pass);
	}

}
